
{% load static %}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>

	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">

    {% block lk %}
        <title>云易购-首页</title>
    {% endblock %}
	<link rel="stylesheet" type="text/css" href="{% static 'plugins/bootstrap-3.4.1/css/reset.css' %}">
	<link rel="stylesheet" type="text/css" href="{% static 'plugins/bootstrap-3.4.1/css/main.css' %}">
    <script type="text/javascript" src="{% static 'plugins/bootstrap-3.4.1/js/jquery-1.12.2.js' %}"></script>
    <script type="text/javascript" src="{% static 'plugins/bootstrap-3.4.1/js/jquery-ui.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'plugins/bootstrap-3.4.1/js/slide.js' %}"></script>

</head>
<body>

        <div class="header_con" style="background-color: #4cae4c" >
		<div class="header">

            <div class="welcome fl" ><a href="http://127.0.0.1:8000/home/" style="color: white">欢迎!</a>
            <span style="color: white">
                {{ request.session.info.name }}
            </span></div>

			<div class="fr">
				<div class="login_info fl" style="color: white">
					欢迎您：<em>张 山</em>daddadada
				</div>
				<div class="login_btn fl">
					<a href="http://127.0.0.1:8000/login/" style="color: white">登录</a>
					<span>|</span>
					<a href="http://127.0.0.1:8000/register/" style="color: white">注册</a>
                    <span>|</span>
                    <a href="http://127.0.0.1:8000/logout/" style="color: white">注销</a>
				</div>
				<div class="user_link fl">
                    <span>|</span>
					<a href="http://127.0.0.1:8000/home/" style="color: white">首页</a>
					<span>|</span>
					<a href="http://127.0.0.1:8000/user/info/" style="color: white">用户中心</a>
					<span>|</span>
					<a href="http://127.0.0.1:8000/cart/" style="color: white">我的购物车</a>
					<span>|</span>
					<a href="http://127.0.0.1:8000/order/" style="color: white">我的订单</a>
				</div>
			</div>

		</div>
	</div>
     <div class="search_bar clearfix" style="background-color: white">
		<a href="index.html" class="logo fl"><img style="width: 200px;height: 120px" src="/static/img/logo.jpg"></a>
		<div class="search_con fl">
            <form method="get" action="http://127.0.0.1:8000/search/goods/">
                {% csrf_token %}
                <input type="text" class="input_text fl" name="keywords" placeholder="搜索商品">
                <input type="submit" class="input_btn fr" name="" value="搜索">

            </form>
		</div>
		<div class="guest_cart fr">
			<a href="http://127.0.0.1:8000/cart/" class="cart_name fl" style="color: white;background-color: #ff8800;">我的购物车</a>
			<div class="goods_count fl" id="show_count" num="{{ cart_num }}">{{ cart_num }}</div>
		</div>
	</div>

         {% block content %}
         {% endblock %}




<script  src="{% static 'Js/js1.txt.js' %}"></script>
<script  src="{% static 'plugins/bootstrap-3.4.1/js/bootstrap.min.js' %}"></script>
<script type="text/javascript" src="{% static 'plugins/bootstrap-3.4.1/js/slide.js' %}"></script>


    {% block js %}
    {% endblock %}


</body>
</html>